home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / comms / other / dwarfx-tng / dwarfx / dwarfwall.amirx < prev    next >
Text File  |  1999-04-19  |  2KB  |  22 lines

  1. /* $VER: DWaRFWaLL.AMiRX 1.3 (08/09/97) Wall message script for AmIRC 1.x
  2. \\ Written by David "COolWAve" Newton
  3. //
  4. \\ USAGE: /Dw <OPS|NOPS> <Message>
  5. // Sends the notice [|DWaRFx-TNG|:+\/\/all[OP|NOP]+:#<ChannelName>] <message> 
  6. \\ to all ops or all non ops, or all on active channel. If you are op'ed,
  7. // "op msg" will be added.
  8. \\ Use the OPS option to send the message to OPS only
  9. // Use the NOPS option to send the message to NOPS only
  10. \\ Put this script in rexx: and add it as an alias to AmIRC with the
  11. //
  12. \\ /Dw <OPS or NOPS> <Message>
  13. //      |        |
  14. \\ Only to OPS   Only to Non-OPs
  15. //
  16. \\ *NOTE*
  17. // Changed by Gaz to shorten the [|DWaRFx-TNG|:+\/\/all[OP|NOP]+:#<ChannelName>]
  18. \\ bit because of complaints ;)) sorry Coolie. I changed it to :- [Op:#AmIRC]
  19. //
  20. \\
  21. */
  22. ;Parse Arg args;Options Results;evnum=Substr(Address(),Pos('.',Address()));Call Setclip('DFxTIME'evnum,Time());'GetMyNick';mynick=Upper(result);'GetChannel';channel=result;opt=Upper(Word(args,1));type=0;Select;When opt="OPS" then type=1;When opt="NOPS" then type=2;Otherwise;End;text='['d2c(2)''d2c(2)'';If type~=0 then args=SubWord(args,2);If type=1 then text=text'Op';If type=2 then text=text'Nop';text=text'/'channel'] 'args;allops="";count=0;message='Echo P='d2c(27)'x«DWaRFWALL»';If args="" Then;Do;message' 'd2c(2)'Error:'d2c(2)' Syntax is /Dw <OPS | NOPS > <Text>.';Exit;end;'GetUserState 'count;Do While rc ~=5;us=rc;ops.count="";'GetUser 'count;nick=result;Select;When us=1 Then;Do;If Upper(nick)=mynick then text=text' 'd2c(2)||'"Op Msg"'||d2c(2);Else If type=1|type=0 then ops.count=nick;End;When us=2|us=0 Then;Do;If nick~=mynick then if type=2|type=0 then ops.count=nick;End;Otherwise;End;count=count+1;'GetUserState 'count;End;Do While count ~=0;count=count-1;If ops.count ~="" Then;Do;'RAW NOTICE 'ops.count' :'text;allops=allops ops.count;End;End;If allops ~="" Then message' 'text' - sent to:'d2c(2)||allops||d2c(2);Else message' No Wall message sent.';Exit